function getType(value: any) {
    if(value === null) return 'null'
    if(typeof value === 'object') return Object.prototype.toString.call(value).split(' ')[1].slice(0, -1).toLowerCase()
    return typeof value
}


let res = getType(null)
console.log(res)

